<?php
 class ExtendedhtmlHelper extends HtmlHelper {
  
  function image($image_url = null, $image_properties = array(), $link_url = null, $link_properties = array())
  {
  	$retVal = "<a href=\"{$link_url}\"";
  	foreach($link_properties as $key => $val)
  		$retVal .= " {$key}=\"{$val}\"";
  		
  	$retVal .= '>';
  	$retVal .= parent::image($image_url,$image_properties);
  	$retVal .= '</a>';
  	
  	return $retVal;
  	
  }
}
?>